﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace HomeDms
{
    public partial class PageZoom : Form
    {
        public PageZoom()
        {
            InitializeComponent();
        }

        Image _image;

        public Image Image
        {
            get { return _image; }
            set 
            { 
                _image = value;
                pictureBox1.Image = _image;
            }
        }

        private void PageZoom_FormClosing(object sender, FormClosingEventArgs e)
        {
            if (e.CloseReason == CloseReason.UserClosing)
            {
                e.Cancel = true;
                Hide();
            }
        }

    }
}
